<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
		<meta content="yes" name="apple-mobile-web-app-capable" />
		<meta content="black" name="apple-mobile-web-app-status-bar-style" />
		<meta content="telephone=no" name="format-detection" />
		<title>红星二锅头防伪查询系统仿制生成</title>
		<script crossorigin="anonymous" integrity="sha512-bLT0Qm9VnAYZDflyKcBaQ2gg0hSYNQrJ8RilYldYQ1FxQYoCLtUjuuRuZo+fjqhx/qtq/1itJ0C2ejDxltZVFg=="
		 src="//lib.baomitu.com/jquery/3.5.1/jquery.min.js"></script>
		<script crossorigin="anonymous" integrity="sha384-0B/45e2to395pfnCkbfqwKFFwAa7zXdvd42eAFJa3Vm8KZ/jmHdn93XdWi//7MDS"
		 src="//lib.baomitu.com/jquery.qrcode/1.0/jquery.qrcode.min.js"></script>
		<style>
			input {
				-webkit-appearance: none;
				/*去除input默认样式*/
			}

			button {
				-webkit-appearance: none;
				/*去除input默认样式*/
			}

			a {
				color: black;
				text-decoration: none;
			}

			body {
				font-size: 14px;
				font-family: Arial;
				padding: 0px;
				margin: 0px;
				background-color: #fff;
			}

			#bdiv a {
				display: inline-block;
				width: 30%;
			}

			#bdiv a img {
				width: 100%;
			}
		</style>
	</head>
	<body>
		<div>
			<div style="text-align: center;margin: 100px 0 50px 0;font-size: 50px;font-family: simsun;color: green">
				高仿红星二锅头防伪码生成
			</div>
			<table style="margin: auto;text-align: center;">
				<tr>
					<td style="width: 256px;">外部码</td>
					<td style="width: 200px;"></td>
					<td style="width: 256px;">内部码</td>
				</tr>
				<tr>
					<td >
						<div id="qrOut" style="width: 256px;height: 256px;background-color: wheat;"></div>
					</td>
					<td ></td>
					<td >
						<div id="qrIn" style="width: 256px;height: 256px;background-color: wheat;"></div>
					</td>
				</tr>
				<tr>
					<td colspan="3">
						<input type="button" id="butOk" value="生成" style="width: 360px;height: 50px;border: 0;background-color: #007AFF;	margin-top: 50px;" />
					</td>
				</tr>
			</table>
		</div>
		<script>
			$('#butOk').click(function() {
				var ua = navigator.userAgent.toLowerCase();
				var url = window.location.href.toLocaleLowerCase();
				if (url.indexOf("/makescode") != -1) {
					url = url.split("/makescode")[0]; 
				}
				
				var qrOut = url+'/?sc=' + Math.round(new Date() / 100);
				var qrIn = url+'/?sc=0' + Math.round(new Date() / 100);
				$('#qrOut').html('');
				$('#qrIn').html('');
				$('#qrOut').qrcode(qrOut);
				$('#qrIn').qrcode(qrIn);
			});
		</script>
	</body>
</html>
